/**
 * 初始化渲染日期
 * @param id
 * @param date
 */
async function renderDate(id, date) {
    var res = await new Promise(function (resolve, reject) {
        layui.use("laydate", async function () {
            var laydate = layui.laydate;

            await laydate.render({
                elem: '#' + id,
                value: date,
                isInitValue: true
            });
            resolve("done");
        });
    }).then(function (result) {
        return result;
    });
    return res;
}